<?php
    if (!isset ($title))
        $title = 'Contact(s)';
    echo form_fieldset($title);
    echo '<table id="table_contacts">';
    echo '<tr> <th>Name</th> <th>First Name</th> <th>Mail</th> </tr>';
    foreach ($contacts as $contact){
        echo '<tr>';
        echo '<td>';
        echo $contact['name'];
        echo '</td>';
        echo '<td>';
        echo $contact['firstName'];
        echo '</td>';
        echo '<td>';
        echo $contact['mail'];
        echo '</td>';
        echo '</tr>';
    }
    echo '</table>';
    echo form_fieldset_close();
?>
